package god;

import java.util.Scanner;

public class Ch03Ex06AscendingSort {
	public static void main(String[] args) {
		
		int num[] = new int[10];
		int temp = 0;
		int i,j = 0;
		Scanner sc = new Scanner(System.in);
		
		
		for ( i = 0; i < 10; ++i) {
			System.out.println(  ( i + 1) + "번째 정수를 입력해주세요.");
			num[i] = sc.nextInt();
			//result += num[i] + "\t\t";
		}
		for ( i = 0;i < 10; ++i) {
			for ( j = 0; j < 9; ++j) {
				if (num[j] > num[j+1]) {
					temp = num[j+1];
					num[j+1] = num[j];
					num[j] = temp;
				}
			}
		}
		for (i = 0; i< 10; ++i) {
			System.out.println(num[i]);
		}
		sc.close();
	}

}
